package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
/*
* 二进制和ascii码
* */
public class Test {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("fos.txt");
//        fos.write(57);
//        fos.write(55);
//        char a = (char)145;
//        System.out.println(a);

//        FileInputStream fis = new File

        byte[] data = new byte[30];
        for(int i=0;i<30;i++) {
            data[i] = (byte)(i+97);
        }
        fos.write(data);
        fos.close();

    }
}
